home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-03 | 15.7 KB | 554 lines | [TEXT/MPS ] |
- # Fast_Dependencies_PPC
- # Copyright © 1984-96 by Apple Computer, Inc. All rights reserved.
-
- ###########################################################
- # Default build rules
- ###########################################################
- .a.o ƒ ∂
- .a ∂
- {AsmLoad} ∂
- "{BuildFlags}"
- {MAEcho} {EchoOptions} "Assembling: {default}.a"
- {MAAsm} ∂
- {AsmOptions} ∂
- {OtherAsmOptions} ∂
- {AsmLoadOptions} ∂
- -i "{SrcApp}" {MAAsmPaths} ∂
- -o {targDir}{default}.a.o ∂
- {depDir}{default}.a
-
- .c.o ƒ ∂
- .c ∂
- "{BuildFlags}"
- set All_C_Files "{All_C_Files} {depDir}{default}.c"
- set All_C_Names "{All_C_Names} {default}.c"
-
- .cp.o ƒ ∂
- .cp ∂
- "{BuildFlags}"
- set All_Cpp_Files "{All_Cpp_Files} {depDir}{default}.cp"
- set All_Cpp_Names "{All_Cpp_Names} {default}.cp"
-
- .cpp.o ƒ ∂
- .cpp ∂
- "{BuildFlags}"
- set All_Cpp_Files "{All_Cpp_Files} {depDir}{default}.cpp"
- set All_Cpp_Names "{All_Cpp_Names} {default}.cpp"
-
- .rsrc ƒ ∂
- .r ∂
- "{BuildFlags}"
- {MAEcho} {EchoOptions} "Rezzing: {default}.r"
- IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
- IF {OtherViewTypesSrc} != ""
- SET XOtherViewTypesSrc {OtherViewTypesSrc}
- SET XIncludeOtherViewTypes 1
- EXPORT XOtherViewTypesSrc
- ELSE
- SET XIncludeOtherViewTypes 0
- END
- {MARez} ∂
- -d XIncludeOtherViewTypes={XIncludeOtherViewTypes} ∂
- -i "{SrcApp}" -s "{SrcApp}" {MARezPaths} ∂
- -o {targDir}{default}.rsrc ∂
- -t "'rsrc'" -c "'RSED'" ∂
- {RezOptions} ∂
- {OtherRezOptions} ∂
- {depDir}{default}.r
- IF "{XTimes}"
- {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
- END
-
- .s.o ƒ ∂
- .s ∂
- "{BuildFlags}"
- {MAEcho} {EchoOptions} "Assembling: {default}.s"
- {MAPPCAsm} ∂
- {PPCAsmOptions} ∂
- {OtherAsmOptions} ∂
- {AsmLoadOptions} ∂
- -i "{SrcApp}" {MAAsmPaths} ∂
- -o {targDir}{default}.s.o ∂
- {depDir}{default}.s
-
- ###########################################################
- # D E P E N D E N C I E S
- ###########################################################
- # Trigger for the application build
- "{ObjApp}" ƒ "{SrcApp}"
-
-
- #{AppName} dependencies
- "{ObjApp}{AppName}" ƒƒ ∂
- "{BuildFlags}" ∂
- {CPlusLoad} ∂
- {MacAppLib} ∂
- {NeededSysLibs} ∂
- {OtherLinkFiles} ∂
- {OtherLinkFilesPPC} ∂
- "{XAppName.cp.o}" ∂
- "{XUAppName.cp.o}" ∂
- "{XMAppName.cp.o}"
- IF "{All_Cpp_Files}" != ""
- if {XUseRAMDisk} && !{XRAMDiskLoad}
- {MAEcho} {EchoOptions} "Loading: {XRAMDiskName}"
- duplicate -y {CPlusLoad} {CPlusLoadCopy}
- set XRAMDiskLoad 1
- end
- ### {MAEcho} {EchoOptions} "Compiling application source files (C++):"
- {MAEcho} {EchoOptions} "Compiling: {All_Cpp_Names}"
- IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
- {MAPPCC} ∂
- {PPCCOptions} ∂
- {MrCOptions} ∂
- {OtherCPlusOptions} ∂
- {CPlusLoadOptions} ∂
- -i "{SrcApp}" {MACPlusPaths} ∂
- {All_Cpp_Files} ∂
- -o {targDir}
- set All_Cpp_Files ""
- set All_Cpp_Names ""
- IF "{XTimes}"
- {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
- END
- END
-
- #{AppName} dependencies
- "{ObjApp}{AppName}" ƒƒ ∂
- "{BuildFlags}" ∂
- {CPlusLoad} ∂
- {MacAppLib} ∂
- {NeededSysLibs} ∂
- {OtherLinkFiles} ∂
- {OtherLinkFilesPPC} ∂
- "{XAppName.cp.o}" ∂
- "{XUAppName.cp.o}" ∂
- "{XMAppName.cp.o}"
- IF "{All_C_Files}" != ""
- if {XUseRAMDisk} && !{XRAMDiskLoad} && ({MAPPCC} == MWCPPC)
- {MAEcho} {EchoOptions} "Loading: {XRAMDiskName}"
- CopyIfNotEqual {CPlusLoadFiles} {CPlusLoadCopy}
- set XRAMDiskLoad 1
- end
- ### {MAEcho} {EchoOptions} "Compiling application source files (C):"
- {MAEcho} {EchoOptions} "Compiling: {All_C_Names}"
- IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
- {MAPPCC} ∂
- {PPCCOptions} ∂
- {MrCOptions} ∂
- {OtherCOptions} ∂
- {CLoadOptions} ∂
- -i "{SrcApp}" {MACPlusPaths} ∂
- {All_C_Files} ∂
- -o {targDir}
- set All_C_Files ""
- set All_C_Names ""
- IF "{XTimes}"
- {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
- END
- END
-
- #{AppName} dependencies
- "{ObjApp}{AppName}" ƒƒ ∂
- "{BuildFlags}" ∂
- {CPlusLoad} ∂
- {MacAppLib} ∂
- {NeededSysLibs} ∂
- {OtherLinkFiles} ∂
- {OtherLinkFilesPPC} ∂
- "{XAppName.cp.o}" ∂
- "{XUAppName.cp.o}" ∂
- "{XMAppName.cp.o}"
- {MAEcho} {EchoOptions} "Linking: {AppName}"
- IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
- {MAPPCLink} ∂
- {PPCLinkOptions} ∂
- {OtherLinkOptions} ∂
- {OtherLinkFiles} ∂
- {OtherLinkFilesPPC} ∂
- {CPlusLoadObj} ∂
- {MacAppLib} ∂
- "{XAppName.cp.o}" ∂
- "{XUAppName.cp.o}" ∂
- "{XMAppName.cp.o}" ∂
- {NeededSysLibs} ∂
- -librename StdCLib.xcoff=StdCLib ∂
- -librename InterfaceLib.xcoff=InterfaceLib ∂
- -librename MathLib.xcoff=MathLib ∂
- {XLinkMap} ∂
- {CFMLibMapping} ∂
- -o "{ObjApp}{AppName}" ∂
- -t APPL ∂
- || (∂
- IF "`EXISTS "{ObjApp}M{AppName}.cp.o"`" != ''; ∂
- SetFile -m . "{ObjApp}M{AppName}.cp.o"; ∂
- end; ∂
- Exit 99)
- IF "{XTimes}"
- {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
- END
-
- #{AppName} dependencies
- "{ObjApp}{AppName}" ƒƒ ∂
- "{XAppRezSrc}" ∂
- "{BuildFlags}" ∂
- "{Merge68K}" ∂
- {MacAppResources} ∂
- {MacAppRIntf} ∂
- {OtherViewTypesSrc} ∂
- {OtherRezFiles} ∂
- {OtherRsrcFiles}
- IF "{XAutoRez}"
- {MAEcho} {EchoOptions} "AutoRezzing: Default.r"
- ELSE
- {MAEcho} {EchoOptions} "Rezzing: {AppName}.r"
- END
- IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
- IF {OtherViewTypesSrc} != ""
- SET XOtherViewTypesSrc {OtherViewTypesSrc}
- SET XIncludeOtherViewTypes 1
- EXPORT XOtherViewTypesSrc
- ELSE
- SET XIncludeOtherViewTypes 0
- END
- SET ObjApp "{ObjApp}"
- EXPORT ObjApp
- SET XAppName "{XAppName}"
- EXPORT XAppName
- {MARez} ∂
- -d XIncludeOtherViewTypes={XIncludeOtherViewTypes} ∂
- -i "{SrcApp}" -s "{SrcApp}" {MARezPaths} ∂
- -o "{ObjApp}{AppName}" ∂
- {RezOptions} ∂
- {OtherRezOptions} ∂
- "{XAppRezSrc}" ∂
- {OtherRezFiles}
- IF "{XTimes}"
- {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
- END
- IF "{Merge68K}" != ""
- {MAEcho} {EchoOptions} "Merging: {Merge68K}"
- Echo "include ∂"{Merge68K}∂" not 'vers';" ∂
- | {MARez} -a -o "{ObjApp}{AppName}"
- END
- {MAEcho} {EchoOptions} "Creator&Bundle: {AppName}"
- {MACreatorAndBundle} ∂
- {CreatorAndBundleOptions} ∂
- {OtherCreatorAndBundleOptions} ∂
- "{ObjApp}{AppName}"
-
- # The MakeSYM stage is commented out because the Macintosh Debugger for PowerPC 2.0
- # reads xcoff files directly. If you are using another debugger such as Jasik's,
- # just uncomment these lines:
-
- ## "{ObjApp}{AppName}" ƒƒ ∂
- ## "{BuildFlags}" ∂
- ## {MacAppLib} ∂
- ## {NeededSysLibs} ∂
- ## {OtherLinkFiles} ∂
- ## {OtherLinkFilesPPC} ∂
- ## "{XAppName.cp.o}" ∂
- ## "{XUAppName.cp.o}" ∂
- ## "{XMAppName.cp.o}"
- ## {MAEcho} {EchoOptions} "MakeSYM: {AppName}"
- ## IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
- ## MakeSYM ∂
- ## {MakeSymOptions} ∂
- ## {OtherMakeSymOptions} ∂
- ## -i "{MALibraries}" ∂
- ## -i "{SrcApp}" ∂
- ## "{ObjApp}{AppName}.xcoff"
- ## IF "{XTimes}"
- ## {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
- ## END
-
- #{AppName} dependencies
- "{ObjApp}{AppName}" ƒƒ ∂
- "{XMakeIt}"
- {MAEcho} {EchoOptions} " ∂"{ObjApp}{AppName}∂" # <- Execute to run your application"
- IF "{XRunAfterBuild}"
- {MAEcho} {EchoOptions} "Running: ∂"{ObjApp}{AppName}∂""
- "{ObjApp}{AppName}"
- END
-
-
- # Dependencies for the "Magically" named files
-
- "{ObjApp}M{AppName}.cp.o" ƒ ∂
- "{XUAppName.h}" ∂
- {BuildingBlocksCPlusIntf} ∂
- {MacAppCPlusIntf} ∂
- {OtherInterfaces}
- "{ObjApp}U{AppName}.cp.o" ƒ ∂
- "{XUAppName.h}" ∂
- {BuildingBlocksCPlusIntf} ∂
- {MacAppCPlusIntf} ∂
- {OtherInterfaces}
- "{ObjApp}{AppName}.cp.o" ƒ ∂
- {BuildingBlocksCPlusIntf} ∂
- {MacAppCPlusIntf} ∂
- {OtherInterfaces}
-
-
- ###########################################################
- # D U M P F I L E D E P E N D E N C I E S
- ###########################################################
- # Load/Dump files must be kept current for C++ too
- # !!! but the dump files must be made dependent on a buildflags kept for the dumpfiles folder!!!
- {CPlusLoadFiles} {CPlusLoadObj} ƒ ∂
- {MacAppCPlusIntf}
- {MAEcho} {EchoOptions} "C++ Load/Dump: {MacAppHeaders}"
- IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
- IF "`EXISTS {CPlusLoad}`" != ''
- Delete {CPlusLoad}
- END
- {MAPPCC} ∂
- {PPCCOptions} ∂
- {MrCOptions} ∂
- {OtherCPlusOptions} ∂
- -i "{SrcApp}" {MACPlusPaths} -i "{MALibraries}" ∂
- {MacAppHeaders} ∂
- # Any other files you want to include in the dump could go here; if you are using CW, stick extra includes in CWMacAppHeaders.h instead
- {LoadFileOutput} ∂
- -dumpc {CPlusLoad} || (Delete {CPlusLoad})
- IF "{XTimes}"
- {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
- END
- IF "{MAPPCC}" == "{MAmwCPPC}"
- IF "`EXISTS {CPlusLoad}`" != ''
- Duplicate "{CWExtraFiles}Empty.c.xcoff" {CPlusLoadObj} -y
- SetFile {CPlusLoadObj} -m .
- END
- END
-
-
- ###########################################################
- # T O O L D E P E N D E N C I E S
- ###########################################################
- "{ObjApp}{ToolName}" ƒƒ ∂
- "{BuildFlags}" ∂
- {CPlusLoad} ∂
- #### {MacAppLib} ∂
- {NeededSysLibs} ∂
- {OtherLinkFiles} ∂
- {OtherLinkFilesPPC} ∂
- "{XAppName.cp.o}" ∂
- "{XUAppName.cp.o}" ∂
- "{XMAppName.cp.o}"
- IF "{All_Cpp_Files}" != ""
- if {XUseRAMDisk} && !{XRAMDiskLoad}
- {MAEcho} {EchoOptions} "Loading: {XRAMDiskName}"
- duplicate -y {CPlusLoad} {CPlusLoadCopy}
- set XRAMDiskLoad 1
- end
- ### {MAEcho} {EchoOptions} "Compiling tool source files (C++):"
- {MAEcho} {EchoOptions} "Compiling: {All_Cpp_Names}"
- IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
- {MAPPCC} ∂
- {PPCCOptions} ∂
- {MrCOptions} ∂
- {OtherCPlusOptions} ∂
- {CPlusLoadOptions} ∂
- -i "{SrcApp}" {MACPlusPaths} ∂
- {All_Cpp_Files} ∂
- -o {targDir}
- set All_Cpp_Files ""
- set All_Cpp_Names ""
- IF "{XTimes}"
- {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
- END
- END
-
- "{ObjApp}{ToolName}" ƒƒ ∂
- "{BuildFlags}" ∂
- {CPlusLoad} ∂
- #### {MacAppLib} ∂
- {NeededSysLibs} ∂
- {OtherLinkFiles} ∂
- {OtherLinkFilesPPC} ∂
- "{XAppName.cp.o}" ∂
- "{XUAppName.cp.o}" ∂
- "{XMAppName.cp.o}"
- IF "{All_C_Files}" != ""
- if {XUseRAMDisk} && !{XRAMDiskLoad} && ({MAPPCC} == MWCPPC)
- {MAEcho} {EchoOptions} "Loading: {XRAMDiskName}"
- CopyIfNotEqual {CPlusLoadFiles} {CPlusLoadCopy}
- set XRAMDiskLoad 1
- end
- ### {MAEcho} {EchoOptions} "Compiling tool source files (C):"
- {MAEcho} {EchoOptions} "Compiling: {All_C_Names}"
- IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
- {MAPPCC} ∂
- {PPCCOptions} ∂
- {MrCOptions} ∂
- {OtherCOptions} ∂
- {CLoadOptions} ∂
- -i "{SrcApp}" {MACPlusPaths} ∂
- {All_C_Files} ∂
- -o {targDir}
- set All_C_Files ""
- set All_C_Names ""
- IF "{XTimes}"
- {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
- END
- END
-
- "{ObjApp}{ToolName}" ƒƒ ∂
- "{BuildFlags}" ∂
- {CPlusLoad} ∂
- #### {MacAppLib} ∂
- {NeededSysLibs} ∂
- {OtherLinkFiles} ∂
- {OtherLinkFilesPPC} ∂
- "{XAppName.cp.o}" ∂
- "{XUAppName.cp.o}" ∂
- "{XMAppName.cp.o}"
- {MAEcho} {EchoOptions} "Linking: {ToolName}"
- IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
- Evaluate v = 0x01104003 # 1.1a3
- {MAPPCLink} ∂
- {PPCLinkOptions} ∂
- {OtherLinkOptions} ∂
- {OtherLinkFiles} ∂
- {OtherLinkFilesPPC} ∂
- {CPlusLoadObj} ∂
- #### {MacAppLib} ∂
- "{XAppName.cp.o}" ∂
- "{XUAppName.cp.o}" ∂
- "{XMAppName.cp.o}" ∂
- {NeededSysLibs} ∂
- -librename "StdCLib.xcoff=StdCLib#{v}" ∂
- -librename InterfaceLib.xcoff=InterfaceLib ∂
- -librename MathLib.xcoff=MathLib ∂
- {CFMLibMapping} ∂
- -o "{ObjApp}{ToolName}" ∂
- -t MPST -c 'MPS ' ∂
- || (∂
- IF "`EXISTS "{ObjApp}{ToolName}.cp.o"`" != ''; ∂
- SetFile -m . "{ObjApp}{ToolName}.cp.o"; ∂
- end; ∂
- Exit 99)
- Unset v
- IF "{XTimes}"
- {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
- END
-
- #ToolName dependencies
-
- "{ObjApp}{ToolName}" ƒƒ ∂
- "{SrcApp}{ToolName}.r" ∂
- "{Merge68K}" ∂
- {OtherViewTypesSrc}
- {MAEcho} {EchoOptions} "Rezzing: {ToolName}"
- IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
- IF {OtherViewTypesSrc} != ""
- SET XOtherViewTypesSrc {OtherViewTypesSrc}
- SET XIncludeOtherViewTypes 1
- EXPORT XOtherViewTypesSrc
- ELSE
- SET XIncludeOtherViewTypes 0
- END
- SET ObjApp "{ObjApp}"
- EXPORT ObjApp
- SET XAppName "{XAppName}"
- EXPORT XAppName
- {MARez} ∂
- -d XIncludeOtherViewTypes={XIncludeOtherViewTypes} ∂
- -i "{SrcApp}" -s "{SrcApp}" {MARezPaths} ∂
- -a -o "{ObjApp}{ToolName}" ∂
- -t 'MPST' -c 'MPS ' ∂
- {RezOptions} ∂
- {OtherRezOptions} ∂
- "{SrcApp}{ToolName}.r" ∂
- {OtherRezFiles}
- IF "{Merge68K}" != ""
- {MAEcho} {EchoOptions} "Merging: {Merge68K}"
- Echo "include ∂"{Merge68K}∂" not 'vers';" ∂
- | {MARez} -a -o "{ObjApp}{ToolName}"
- END
- IF "{XTimes}"
- {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
- END
-
- #{ToolName} dependencies
- "{ObjApp}{ToolName}" ƒƒ ∂
- "{XMakeIt}"
- {MAEcho} {EchoOptions} " ∂"{ObjApp}{ToolName}∂" # <- Execute to run your tool"
- IF "{XRunAfterBuild}"
- {MAEcho} {EchoOptions} "Running: ∂"{ObjApp}{ToolName}∂""
- "{ObjApp}{ToolName}"
- END
-
-
-
- ###########################################################
- # L I B R A R Y D E P E N D E N C I E S
- ###########################################################
- "{ObjApp}{LibName}" ƒƒ ∂
- {LibObjs}
- IF "{All_Cpp_Files}" != ""
- if {XUseRAMDisk} && !{XRAMDiskLoad}
- {MAEcho} {EchoOptions} "Loading: {XRAMDiskName}"
- duplicate -y {CPlusLoad} {CPlusLoadCopy}
- set XRAMDiskLoad 1
- end
- ### {MAEcho} {EchoOptions} "Compiling library source files (C++):"
- {MAEcho} {EchoOptions} "Compiling: {All_Cpp_Names}"
- IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
- {MAPPCC} ∂
- {PPCCOptions} ∂
- {MrCOptions} ∂
- {OtherCPlusOptions} ∂
- {CPlusLoadOptions} ∂
- -i "{SrcApp}" {MACPlusPaths} ∂
- {All_Cpp_Files} ∂
- -o {targDir}
- set All_Cpp_Files ""
- set All_Cpp_Names ""
- IF "{XTimes}"
- {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
- END
- END
-
- "{ObjApp}{LibName}" ƒƒ ∂
- {LibObjs}
- IF "{All_C_Files}" != ""
- if {XUseRAMDisk} && !{XRAMDiskLoad} && ({MAPPCC} == MWCPPC)
- {MAEcho} {EchoOptions} "Loading: {XRAMDiskName}"
- CopyIfNotEqual {CPlusLoadFiles} {CPlusLoadCopy}
- set XRAMDiskLoad 1
- end
- ### {MAEcho} {EchoOptions} "Compiling library source files (C):"
- {MAEcho} {EchoOptions} "Compiling: {All_C_Names}"
- IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
- {MAPPCC} ∂
- {PPCCOptions} ∂
- {MrCOptions} ∂
- {OtherCOptions} ∂
- {CLoadOptions} ∂
- -i "{SrcApp}" {MACPlusPaths} ∂
- {All_C_Files} ∂
- -o {targDir}
- set All_C_Files ""
- set All_C_Names ""
- IF "{XTimes}"
- {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
- END
- END
-
- "{ObjApp}{LibName}" ƒƒ ∂
- {LibObjs}
- IF {MacAppLibrary} || {LibName} !~ /MacApp.lib.xcoff/ # Special trick to keep MacApp libraries from building
- {MAEcho} {EchoOptions} "Libbing: {LibName}"
- IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
- {MAPPCLink} ∂
- {PPCLibOptions} ∂
- {OtherLibOptions} ∂
- {LibObjs} ∂
- -o "{ObjApp}{LibName}"
- IF "{XTimes}"
- {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
- END
- END
-
-